﻿using System;
using System.Data;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using AnyOffice.Components;
using AnyOffice.DAL;

namespace AnyOffice.general.attend.personal
{
    public partial class leave_history : ModulePage
    {

        protected void Page_Load(object sender, EventArgs e)
        {
            DataTable table = new AttendLeaveDao().SelectHistory(base.Conn, base.User.Identity.Name);
            if (table.Rows.Count > 0)
            {
                this.rptLeave.DataSource = table;
                this.rptLeave.DataBind();
            }
            else
            {
                this.litMessage.Text = base.ShowPrompt("无请假历史记录", "leave.aspx");
            }
        } 

    }
}
